####需要设置为本机地址####

set(PROJECT_SOURCE_DIR_HISI  ${PROJECT_SOURCE_DIR})

#aarch64-himix100编译器地址
SET(AARCH64_HIMIX_PATH /opt/hisi-linux/x86-arm/aarch64-himix100-linux)

#预编译好的第三方库地址
set(COMMON_PATH /home/pv/Project/pv-vision-hisi3rdparty)

message(STATUS "PROJECT_SOURCE_DIR: ${PROJECT_SOURCE_DIR}")
message(STATUS "PROJECT_SOURCE_DIR_HISI: ${PROJECT_SOURCE_DIR_HISI}")
message(STATUS "***********out 1 start to cross compile *************")
#TODO:告知当前使用的是交叉编译方式，必须配置 
SET(CMAKE_SYSTEM_NAME Linux)

#目标系统的硬件或者CPU型号
SET(CMAKE_SYSTEM_PROCESSOR ARM)

#TODO:指定C交叉编译器，必须配置 TODO:或交叉编译环境器使用绝对地址。 
SET(CMAKE_C_COMPILER ${AARCH64_HIMIX_PATH}/bin/aarch64-himix100-linux-gcc) 

#TODO:指定C++交叉编译器，必须配置 TODO:或交叉编译环境器使用绝对地址。 
SET(CMAKE_CXX_COMPILER ${AARCH64_HIMIX_PATH}/bin/aarch64-himix100-linux-g++)

#指定交叉编译环境安装目录...
SET(CMAKE_FIND_ROOT_PATH ${AARCH64_HIMIX_PATH}/target/usr/ 
	${COMMON_PATH})

# search for programs in the build host directories 
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) 
# for libraries and headers in the target directories 
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) 
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) 
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)


set(OpenCV_INCLUDE_DIRS ${COMMON_PATH}/opencv-3.4.0/include)

set(OpenCV_LIBS_DIRS ${COMMON_PATH}/opencv-3.4.0/lib) 
set(OpenCV_LIBS 
	-lopencv_stitching
	-lopencv_objdetect 
	-lopencv_superres 
	-lopencv_videostab
	-lopencv_video 
	-lopencv_highgui
	-lopencv_calib3d 
	-lopencv_features2d
	-lopencv_imgcodecs
	-lopencv_imgproc 
	-lopencv_flann
	-lopencv_photo 
	-lopencv_core
	-llibjpeg
	-llibtiff
	-llibwebp
	-llibjasper
	-lIlmImf
	-lzlib
	-llibpng	
	# -lSophus
	)

